package com.platform.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 会员管理:用户资产
 * 表名 t_user_asset
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-01 17:31:55
 */
public class UserAssetEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Integer id;
    //用户id
    private Long uid;
    //手机号
    private String phone;
    //用户名
    private String userName;
    //总资金(返佣)
    private BigDecimal amount;
    //资金冻结
    private BigDecimal frozen;
    //链总数量
    private BigDecimal coin;
    //冻结
    private BigDecimal coinFrozen;
    //普通
    private BigDecimal kilometer;
    //额外
    private BigDecimal kilometerExtra;
    //
    private BigDecimal kilometerReal;
    //每日返还利率
    private BigDecimal backRate;
    //创建时间
    private Date createDate;
    //更新时间
    private Date updateDate;
    //spc收益冻结
    private BigDecimal spcCoinFrozen;
    //spc数量
    private BigDecimal spcCoin;


    private Integer version;
    private Integer done;

    /**
     * 设置：
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取：
     */
    public Integer getId() {
        return id;
    }
    /**
     * 设置：用户id
     */
    public void setUid(Long uid) {
        this.uid = uid;
    }

    /**
     * 获取：用户id
     */
    public Long getUid() {
        return uid;
    }
    /**
     * 设置：手机号
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取：手机号
     */
    public String getPhone() {
        return phone;
    }
    /**
     * 设置：用户名
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取：用户名
     */
    public String getUserName() {
        return userName;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getFrozen() {
        return frozen;
    }

    public void setFrozen(BigDecimal frozen) {
        this.frozen = frozen;
    }

    public BigDecimal getCoin() {
        return coin;
    }

    public void setCoin(BigDecimal coin) {
        this.coin = coin;
    }

    public BigDecimal getCoinFrozen() {
        return coinFrozen;
    }

    public void setCoinFrozen(BigDecimal coinFrozen) {
        this.coinFrozen = (coinFrozen == null ? new BigDecimal(0) : coinFrozen);
    }

    public BigDecimal getKilometer() {
        return kilometer;
    }

    public void setKilometer(BigDecimal kilometer) {
        this.kilometer = (kilometer == null ? new BigDecimal(0) : kilometer);
    }

    public BigDecimal getKilometerExtra() {
        return kilometerExtra;
    }

    public void setKilometerExtra(BigDecimal kilometerExtra) {
        this.kilometerExtra = (kilometerExtra == null ? new BigDecimal(0) : kilometerExtra);
    }

    public BigDecimal getKilometerReal() {
        return kilometerReal;
    }

    public void setKilometerReal(BigDecimal kilometerReal) {
        this.kilometerReal = (kilometerReal == null ?new BigDecimal(0) : kilometerReal);
    }

    /**
     * 设置：创建时间
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * 获取：创建时间
     */
    public Date getCreateDate() {
        return createDate;
    }
    /**
     * 设置：更新时间
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     * 获取：更新时间
     */
    public Date getUpdateDate() {
        return updateDate;
    }
    /**
     * 设置：
     */
    public void setVersion(Integer version) {
        this.version = version;
    }

    /**
     * 获取：
     */
    public Integer getVersion() {
        return version;
    }

    public Integer getDone() {
        return done;
    }

    public void setDone(Integer done) {
        this.done = done;
    }


    public BigDecimal getBackRate() {
        return backRate;
    }

    public void setBackRate(BigDecimal backRate) {
        this.backRate = (backRate == null ? new BigDecimal(0) : backRate);
    }

    public BigDecimal getSpcCoinFrozen() {
        return spcCoinFrozen == null ? new BigDecimal(0) : spcCoinFrozen;
    }

    public void setSpcCoinFrozen(BigDecimal spcCoinFrozen) {
        this.spcCoinFrozen = (spcCoinFrozen == null ? new BigDecimal(0) : spcCoinFrozen);
    }

    public BigDecimal getSpcCoin() {
        return spcCoin == null ? new BigDecimal(0) : spcCoin;
    }

    public void setSpcCoin(BigDecimal spcCoin) {
        this.spcCoin = (spcCoin == null ? new BigDecimal(0) : spcCoin);
    }
}
